package com.wzdigit.wms.basic.util.enums;

/**
 * 单据模块标识
 * 
 * @author Administrator
 *
 */
public enum DocModuleEnum {

	GDN("GDN", "发货单"),
	
	ASN("ASN", "收货单"),
	
	TRANSFER("TRANSFER", "调拨单");
	
    public String code;

    public String name;
    
    public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	
	DocModuleEnum(String code, String name) {
		this.code = code;
		this.name = name;
	}
    
    public static DocModuleEnum getEnumByCode(String code) {
        for (DocModuleEnum item : DocModuleEnum.values()) {
            if (item.getCode().equals(code)) {
                return item;
            }
        }
        return null;
    }
}
